<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:17:43 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Git - gitfaq</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Guides">
                                Guides                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="9e626dbaa9797112bda2a4576e7df3b2fd978b8f4b59a6c1495959c53ad058e1/5c" data-source="gitfaq" onmousemove="i18n(this)">gitfaq</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="cf3bcc81a84de9142df711f2c7ce1ae719c4d9204aec6c67a4143636a826d060/2d" data-source="gitfaq - Frequently asked questions about using Git" onmousemove="i18n(this)">gitfaq &mdash; &CHcy;&acy;&scy;&tcy;&ocy; &zcy;&acy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &vcy;&ocy;&pcy;&rcy;&ocy;&scy;&ycy; &ocy;&bcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  Git</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <p><span data-i18n="9e626dbaa9797112bda2a4576e7df3b2fd978b8f4b59a6c1495959c53ad058e1/5c" data-source="gitfaq" onmousemove="i18n(this)">gitfaq</span></p> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="b3d27a4d197ecd22edcdd8ff95430d3104935009b757a37e2e46b072fc71b1f6/bf" data-source="The examples in this FAQ assume a standard POSIX shell, like &lt;code&gt;bash&lt;/code&gt; or &lt;code&gt;dash&lt;/code&gt;, and a user, A U Thor, who has the account &lt;code&gt;author&lt;/code&gt; on the hosting provider &lt;code&gt;git.example.org&lt;/code&gt;." onmousemove="i18n(this)">&Vcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&acy;&khcy; &ecy;&tcy;&ocy;&gcy;&ocy; FAQ &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&acy;&gcy;&acy;&iecy;&tcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&jcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy; POSIX, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;  <code>bash</code>  &icy;&lcy;&icy;  <code>dash</code> , &icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; AU Thor, &icy;&mcy;&iecy;&yucy;&shchcy;&iecy;&gcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ucy;&yucy; &zcy;&acy;&pcy;&icy;&scy;&softcy;  <code>author</code>  &ucy; &khcy;&ocy;&scy;&tcy;&icy;&ncy;&gcy;-&pcy;&rcy;&ocy;&vcy;&acy;&jcy;&dcy;&iecy;&rcy;&acy;  <code>git.example.org</code> .</span></p> </div> <h2 class="text-body-emphasis"  id="_configuration"><span data-i18n="b332c3492d5eb10a118eb6d8b0dcd689bc2477ce2ae16b303753b942b54377bc/aa" data-source="Configuration" onmousemove="i18n(this)">Configuration</span></h2> <div> <div id="user-name"> <dl> <dt id="Documentation/gitfaq.txt-WhatshouldIputincodeusernamecode"><span data-i18n="6b0523a5083721936eacbb134aa3045579eb10f432c30f72ac0c384ee397beaf/a4" data-source="What should I put in &lt;code&gt;user.name&lt;/code&gt;?" onmousemove="i18n(this)">&CHcy;&tcy;&ocy; &mcy;&ncy;&iecy; &pcy;&ocy;&scy;&tcy;&acy;&vcy;&icy;&tcy;&softcy; &vcy;  <code>user.name</code> ?</span></dt> <dd> <p><span data-i18n="70b63661edb9698e6dc603839f4433d1e78cdbbaf10de74b803a5e9c52c9adb4/1c" data-source="You should put your personal name, generally a form using a given name and family name. For example, the current maintainer of Git uses &amp;quot;Junio C Hamano&amp;quot;. This will be the name portion that is stored in every commit you make." onmousemove="i18n(this)">&Vcy;&ycy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &scy;&vcy;&ocy;&iecy; &lcy;&icy;&chcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy;, &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ecy;&tcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &icy;&mcy;&yacy; &icy; &fcy;&acy;&mcy;&icy;&lcy;&icy;&yacy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &scy;&ocy;&pcy;&rcy;&ocy;&vcy;&ocy;&zhcy;&dcy;&acy;&yucy;&shchcy;&icy;&jcy;  Git  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;  &quot;Junio C Hamano&quot; . &Ecy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &chcy;&acy;&scy;&tcy;&softcy; &icy;&mcy;&iecy;&ncy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&zhcy;&dcy;&ocy;&mcy; &scy;&dcy;&iecy;&lcy;&acy;&ncy;&ncy;&ocy;&mcy; &vcy;&acy;&mcy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&iecy;.</span></p> <p><span data-i18n="410af7d7fc6260f621f550753d6c66e9c0c0995263cdfb8ee929efdd1172c156/e8" data-source="This configuration doesn&amp;rsquo;t have any effect on authenticating to remote services; for that, see &lt;code&gt;credential.username&lt;/code&gt; in &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yacy; &ncy;&iecy; &vcy;&lcy;&icy;&yacy;&iecy;&tcy; &ncy;&acy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy;&lcy;&ucy;&zhcy;&bcy;&acy;&khcy;; &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &scy;&mcy;.  <code>credential.username</code>  &vcy;  <a href="git-config.html">git-config[1]</a> .</span></p> </dd> </dl> </div> <div id="http-postbuffer"> <dl> <dt id="Documentation/gitfaq.txt-WhatdoescodehttppostBuffercodereallydo"><span data-i18n="a4f13c6fccb0b0cf752998b1e3946f402c5a6f76b1bc6393ed314d44a799cffc/ca" data-source="What does &lt;code&gt;http.postBuffer&lt;/code&gt; really do?" onmousemove="i18n(this)">&CHcy;&tcy;&ocy; &ncy;&acy; &scy;&acy;&mcy;&ocy;&mcy; &dcy;&iecy;&lcy;&iecy; &dcy;&iecy;&lcy;&acy;&iecy;&tcy;  <code>http.postBuffer</code> ?</span></dt> <dd> <p><span data-i18n="f8ba8da0454989053d8e08b695557c56f02234ee017345323364645a6f1318e0/77" data-source="This option changes the size of the buffer that Git uses when pushing data to a remote over HTTP or HTTPS. If the data is larger than this size, libcurl, which handles the HTTP support for Git, will use chunked transfer encoding since it isn&amp;rsquo;t known ahead of time what the size of the pushed data will be." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &bcy;&ucy;&fcy;&iecy;&rcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy;  Git  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &pcy;&rcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ncy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&ocy;&mcy;&pcy;&softcy;&yucy;&tcy;&iecy;&rcy; &chcy;&iecy;&rcy;&iecy;&zcy; HTTP &icy;&lcy;&icy; HTTPS. &IEcy;&scy;&lcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&rcy;&iecy;&vcy;&ycy;&shcy;&acy;&yucy;&tcy; &ecy;&tcy;&ocy;&tcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy;, libcurl, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&icy;&vcy;&acy;&iecy;&tcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&kcy;&ucy; HTTP &dcy;&lcy;&yacy;  Git , &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&iecy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &zcy;&acy;&rcy;&acy;&ncy;&iecy;&iecy; &ncy;&iecy;&icy;&zcy;&vcy;&iecy;&scy;&tcy;&ncy;&ocy;, &kcy;&acy;&kcy;&icy;&mcy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;.</span></p> <p><span data-i18n="50c88bd0ff970b1d7e196bac3d5cb02985ce8f9a7c9300a62ac457e4c6146eec/1a" data-source="Leaving this value at the default size is fine unless you know that either the remote server or a proxy in the middle doesn&amp;rsquo;t support HTTP/1.1 (which introduced the chunked transfer encoding) or is known to be broken with chunked data. This is often (erroneously) suggested as a solution for generic push problems, but since almost every server and proxy supports at least HTTP/1.1, raising this value usually doesn&amp;rsquo;t solve most push problems. A server or proxy that didn&amp;rsquo;t correctly support HTTP/1.1 and chunked transfer encoding wouldn&amp;rsquo;t be that useful on the Internet today, since it would break lots of traffic." onmousemove="i18n(this)">&Ocy;&scy;&tcy;&acy;&vcy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &vcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &mcy;&ocy;&zhcy;&ncy;&ocy;, &iecy;&scy;&lcy;&icy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy;&ycy; &ncy;&iecy; &zcy;&ncy;&acy;&iecy;&tcy;&iecy;, &chcy;&tcy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &icy;&lcy;&icy; &pcy;&rcy;&ocy;&kcy;&scy;&icy;-&scy;&iecy;&rcy;&vcy;&iecy;&rcy; &vcy; &scy;&iecy;&rcy;&iecy;&dcy;&icy;&ncy;&iecy; &ncy;&iecy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; HTTP/1.1 (&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy;&vcy;&iecy;&lcy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&kcy;&ucy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&jcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy;) &icy;&lcy;&icy; &icy;&zcy;&vcy;&iecy;&scy;&tcy;&ncy;&ocy;, &chcy;&tcy;&ocy; &ocy;&ncy; &ncy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy; &scy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&mcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;&icy;. &Ecy;&tcy;&ocy; &chcy;&acy;&scy;&tcy;&ocy; (&ocy;&shcy;&icy;&bcy;&ocy;&chcy;&ncy;&ocy;) &pcy;&rcy;&iecy;&dcy;&lcy;&acy;&gcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&shchcy;&icy;&khcy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy;, &ncy;&ocy; &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &pcy;&ocy;&chcy;&tcy;&icy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &icy; &pcy;&rcy;&ocy;&kcy;&scy;&icy;-&scy;&iecy;&rcy;&vcy;&iecy;&rcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy; &kcy;&acy;&kcy; &mcy;&icy;&ncy;&icy;&mcy;&ucy;&mcy; HTTP/1.1, &pcy;&ocy;&vcy;&ycy;&shcy;&iecy;&ncy;&icy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ncy;&iecy; &rcy;&iecy;&shcy;&acy;&iecy;&tcy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&ncy;&scy;&tcy;&vcy;&ocy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy;. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &icy;&lcy;&icy; &pcy;&rcy;&ocy;&kcy;&scy;&icy;-&scy;&iecy;&rcy;&vcy;&iecy;&rcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy;&pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ocy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy; HTTP/1.1 &icy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&iecy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy;, &scy;&iecy;&gcy;&ocy;&dcy;&ncy;&yacy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &tcy;&acy;&kcy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ycy; &vcy; &Icy;&ncy;&tcy;&iecy;&rcy;&ncy;&iecy;&tcy;&iecy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ecy;&tcy;&ocy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &ncy;&acy;&rcy;&ucy;&shcy;&iecy;&ncy;&icy;&yucy; &bcy;&ocy;&lcy;&softcy;&shcy;&ocy;&gcy;&ocy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&acy; &tcy;&rcy;&acy;&fcy;&icy;&kcy;&acy;.</span></p> <p><span data-i18n="0e772f0c6b2a38899270f28b30c0794c10a7674dd81023d5f6c6d1b050069467/09" data-source="Note that increasing this value will increase the memory used on every relevant push that Git does over HTTP or HTTPS, since the entire buffer is allocated regardless of whether or not it is all used. Thus, it&amp;rsquo;s best to leave it at the default unless you are sure you need a different value." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &ucy;&vcy;&iecy;&lcy;&icy;&chcy;&iecy;&ncy;&icy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &ucy;&vcy;&iecy;&lcy;&icy;&chcy;&iecy;&ncy;&icy;&yucy; &pcy;&acy;&mcy;&yacy;&tcy;&icy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ocy;&jcy; &pcy;&rcy;&icy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy;  Git  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &chcy;&iecy;&rcy;&iecy;&zcy; HTTP &icy;&lcy;&icy; HTTPS, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &vcy;&iecy;&scy;&softcy; &bcy;&ucy;&fcy;&iecy;&rcy; &vcy;&ycy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &lcy;&icy; &ocy;&ncy; &vcy;&iecy;&scy;&softcy;. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &lcy;&ucy;&chcy;&shcy;&iecy; &ocy;&scy;&tcy;&acy;&vcy;&icy;&tcy;&softcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &ncy;&iecy; &ucy;&vcy;&iecy;&rcy;&iecy;&ncy;&ycy;, &chcy;&tcy;&ocy; &vcy;&acy;&mcy; &ncy;&ucy;&zhcy;&ncy;&ocy; &dcy;&rcy;&ucy;&gcy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;.</span></p> </dd> </dl> </div> <div id="configure-editor"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIconfigureadifferenteditor"><span data-i18n="398b78e93f5efcc6e637a60cb54592af5005b6da2fb1776fb86c82b0efa6c721/8a" data-source="How do I configure a different editor?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &mcy;&ncy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;?</span></dt> <dd> <p><span data-i18n="fbc4269389fed9f19efff629c9366ae755ab65801b3b12f0e80968eda163cfc2/9d" data-source="If you haven&amp;rsquo;t specified an editor specifically for Git, it will by default use the editor you&amp;rsquo;ve configured using the &lt;code&gt;VISUAL&lt;/code&gt; or &lt;code&gt;EDITOR&lt;/code&gt; environment variables, or if neither is specified, the system default (which is usually &lt;code&gt;vi&lt;/code&gt;). Since some people find &lt;code&gt;vi&lt;/code&gt; difficult to use or prefer a different editor, it may be desirable to change the editor used." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&lcy;&icy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &scy;&pcy;&iecy;&tscy;&icy;&acy;&lcy;&softcy;&ncy;&ocy; &dcy;&lcy;&yacy; Git, &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ocy;&ncy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy;&ycy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&lcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>VISUAL</code>  &icy;&lcy;&icy;  <code>EDITOR</code> , &icy;&lcy;&icy;, &iecy;&scy;&lcy;&icy; &ncy;&icy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &ncy;&icy;&khcy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;, &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ycy;&jcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; (&ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ecy;&tcy;&ocy;  <code>vi</code> ). &Pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &lcy;&yucy;&dcy;&icy; &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&tcy;  <code>vi</code>  &tcy;&rcy;&ucy;&dcy;&ncy;&ycy;&mcy; &vcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &icy;&lcy;&icy; &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&chcy;&icy;&tcy;&acy;&yucy;&tcy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;, &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;&scy;&yacy; &zhcy;&iecy;&lcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy; &scy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&jcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;.</span></p> <p><span data-i18n="5c1b3b1ff6360f49b27d16e6c476f6fbf0df6922f797fb550e889f3d582447e2/d5" data-source="If you want to configure a general editor for most programs which need one, you can edit your shell configuration (e.g., &lt;code&gt;~/.bashrc&lt;/code&gt; or &lt;code&gt;~/.zshenv&lt;/code&gt;) to contain a line setting the &lt;code&gt;EDITOR&lt;/code&gt; or &lt;code&gt;VISUAL&lt;/code&gt; environment variable to an appropriate value. For example, if you prefer the editor &lt;code&gt;nano&lt;/code&gt;, then you could write the following:" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &ocy;&bcy;&shchcy;&icy;&jcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &dcy;&lcy;&yacy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&ncy;&scy;&tcy;&vcy;&acy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &ocy;&ncy; &ncy;&ucy;&zhcy;&iecy;&ncy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ocy;&tcy;&rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yucy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>~/.bashrc</code>  &icy;&lcy;&icy;  <code>~/.zshenv</code> ), &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy;&acy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&lcy;&acy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;, &ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&yucy;&shchcy;&ucy;&yucy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>EDITOR</code>  &icy;&lcy;&icy;  <code>VISUAL</code>  &pcy;&ocy;&dcy;&khcy;&ocy;&dcy;&yacy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&chcy;&icy;&tcy;&acy;&iecy;&tcy;&iecy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;  <code>nano</code> , &tcy;&ocy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ncy;&acy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&iecy;:</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-built_in">export</span> VISUAL=nano</pre> </div> </div> <p><span data-i18n="408fbd19b3b410726a6081bc6423421d0e044d745351b7b548bba27ad0c5f186/e1" data-source="If you want to configure an editor specifically for Git, you can either set the &lt;code&gt;core.editor&lt;/code&gt; configuration value or the &lt;code&gt;GIT_EDITOR&lt;/code&gt; environment variable. You can see &lt;a href=&quot;git-var&quot;&gt;git-var[1]&lt;/a&gt; for details on the order in which these options are consulted." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &scy;&pcy;&iecy;&tscy;&icy;&acy;&lcy;&softcy;&ncy;&ocy; &dcy;&lcy;&yacy; Git, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.editor</code>  &icy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_EDITOR</code> . &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy; &ocy;&bcy;&rcy;&acy;&shchcy;&iecy;&ncy;&icy;&yacy; &kcy; &ecy;&tcy;&icy;&mcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;&mcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&jcy;&tcy;&icy; &vcy;  <a href="git-var.html">git-var[1]</a> .</span></p> <p><span data-i18n="50db65749de24a1dc464899f8526e3c7b107eb92204dbf5906a6b368a453871d/98" data-source="Note that in all cases, the editor value will be passed to the shell, so any arguments containing spaces should be appropriately quoted. Additionally, if your editor normally detaches from the terminal when invoked, you should specify it with an argument that makes it not do that, or else Git will not see any changes. An example of a configuration addressing both of these issues on Windows would be the configuration &lt;code&gt;&amp;quot;C:\Program Files\Vim\gvim.exe&amp;quot; --nofork&lt;/code&gt;, which quotes the filename with spaces and specifies the &lt;code&gt;--nofork&lt;/code&gt; option to avoid backgrounding the process." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &vcy;&ocy; &vcy;&scy;&iecy;&khcy; &scy;&lcy;&ucy;&chcy;&acy;&yacy;&khcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&ncy;&ocy; &vcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&ucy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &lcy;&yucy;&bcy;&ycy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&icy;&iecy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&ycy;, &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &bcy;&ycy;&tcy;&softcy; &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;. &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &iecy;&scy;&lcy;&icy; &vcy;&acy;&shcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&tcy; &tcy;&iecy;&rcy;&mcy;&icy;&ncy;&acy;&lcy;&acy; &pcy;&rcy;&icy; &vcy;&ycy;&zcy;&ocy;&vcy;&iecy;, &vcy;&acy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &iecy;&gcy;&ocy; &scy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &zcy;&acy;&pcy;&rcy;&iecy;&shchcy;&acy;&iecy;&tcy; &ecy;&tcy;&ocy; &dcy;&iecy;&lcy;&acy;&tcy;&softcy;, &icy;&ncy;&acy;&chcy;&iecy;  Git  &ncy;&iecy; &ucy;&vcy;&icy;&dcy;&icy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;. &Pcy;&rcy;&icy;&mcy;&iecy;&rcy;&ocy;&mcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &rcy;&iecy;&shcy;&acy;&yucy;&shchcy;&iecy;&jcy; &ocy;&bcy;&iecy; &ecy;&tcy;&icy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy; &vcy; Windows, &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yacy;  <code>&quot;C:\Program Files\Vim\gvim.exe&quot; --nofork</code>  , &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy; &scy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&acy;&mcy;&icy; &icy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;  <code>--nofork</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&bcy;&iecy;&zhcy;&acy;&tcy;&softcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_credentials"><span data-i18n="d48a617c7da5163c44f117b9b23d8c920e69b4aa83d7b6570d71a66f3a857183/7b" data-source="Credentials" onmousemove="i18n(this)">Credentials</span></h2> <div> <div id="http-credentials"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIspecifymycredentialswhenpushingoverHTTP"><span data-i18n="8a685ad128d604bcc8e64ac1921e62ff860c2e3065a6e17c9a60a9db2ed445fe/b0" data-source="How do I specify my credentials when pushing over HTTP?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &scy;&vcy;&ocy;&icy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&rcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&iecy; &chcy;&iecy;&rcy;&iecy;&zcy; HTTP?</span></dt> <dd> <p><span data-i18n="5bf97432c8b597dd1e41a583a4faa8e49d99130b08e7a7d7a1abe850b95738a6/35" data-source="The easiest way to do this is to use a credential helper via the &lt;code&gt;credential.helper&lt;/code&gt; configuration. Most systems provide a standard choice to integrate with the system credential manager. For example, Git for Windows provides the &lt;code&gt;wincred&lt;/code&gt; credential manager, macOS has the &lt;code&gt;osxkeychain&lt;/code&gt; credential manager, and Unix systems with a standard desktop environment can use the &lt;code&gt;libsecret&lt;/code&gt; credential manager. All of these store credentials in an encrypted store to keep your passwords or tokens secure." onmousemove="i18n(this)">&Scy;&acy;&mcy;&ycy;&jcy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy;&jcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy; &mdash; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&ocy;&mcy;&ocy;&shchcy;&ncy;&icy;&kcy; &pcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy; &chcy;&iecy;&rcy;&iecy;&zcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yucy;  <code>credential.helper</code> . &Bcy;&ocy;&lcy;&softcy;&shcy;&icy;&ncy;&scy;&tcy;&vcy;&ocy; &scy;&icy;&scy;&tcy;&iecy;&mcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy; &icy;&ncy;&tcy;&iecy;&gcy;&rcy;&acy;&tscy;&icy;&icy; &scy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ycy;&mcy; &dcy;&icy;&scy;&pcy;&iecy;&tcy;&chcy;&iecy;&rcy;&ocy;&mcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  Git  &dcy;&lcy;&yacy; Windows &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &dcy;&icy;&scy;&pcy;&iecy;&tcy;&chcy;&iecy;&rcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>wincred</code> , macOS &icy;&mcy;&iecy;&iecy;&tcy; &dcy;&icy;&scy;&pcy;&iecy;&tcy;&chcy;&iecy;&rcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>osxkeychain</code> , &acy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ycy; Unix &scy;&ocy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ocy;&jcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &scy;&tcy;&ocy;&lcy;&acy; &mcy;&ocy;&gcy;&ucy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&icy;&scy;&pcy;&iecy;&tcy;&chcy;&iecy;&rcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>libsecret</code> . &Vcy;&scy;&iecy; &ecy;&tcy;&icy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &khcy;&rcy;&acy;&ncy;&yacy;&tcy;&scy;&yacy; &vcy; &zcy;&acy;&shcy;&icy;&fcy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&mcy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&icy;&tcy;&softcy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy;&scy;&tcy;&softcy; &vcy;&acy;&shcy;&icy;&khcy; &pcy;&acy;&rcy;&ocy;&lcy;&iecy;&jcy; &icy;&lcy;&icy; &tcy;&ocy;&kcy;&iecy;&ncy;&ocy;&vcy;.</span></p> <p><span data-i18n="c6bdf1b1be8576ee8c6ad6065708498b03fea72a57fcd570fc37fb1d2da22aac/b4" data-source="In addition, you can use the &lt;code&gt;store&lt;/code&gt; credential manager which stores in a file in your home directory, or the &lt;code&gt;cache&lt;/code&gt; credential manager, which does not permanently store your credentials, but does prevent you from being prompted for them for a certain period of time." onmousemove="i18n(this)">&Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&icy;&scy;&pcy;&iecy;&tcy;&chcy;&iecy;&rcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>store</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&scy;&yacy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy; &vcy; &vcy;&acy;&shcy;&iecy;&mcy; &dcy;&ocy;&mcy;&acy;&shcy;&ncy;&iecy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;, &icy;&lcy;&icy; &dcy;&icy;&scy;&pcy;&iecy;&tcy;&chcy;&iecy;&rcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>cache</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&iecy; &khcy;&rcy;&acy;&ncy;&icy;&tcy; &vcy;&acy;&shcy;&icy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&ncy;&ocy;, &ncy;&ocy; &ncy;&iecy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &vcy;&acy;&mcy; &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&tcy;&softcy; &icy;&khcy; &vcy; &tcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&iecy;&rcy;&icy;&ocy;&dcy;&acy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy;.</span></p> <p><span data-i18n="eb9bcff4e6a752ba0e19d12ec3d4fad84f6994d87b295076a4790b58a8c051e6/9e" data-source="You can also just enter your password when prompted. While it is possible to place the password (which must be percent-encoded) in the URL, this is not particularly secure and can lead to accidental exposure of credentials, so it is not recommended." onmousemove="i18n(this)">&Vcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &vcy;&vcy;&iecy;&scy;&tcy;&icy; &scy;&vcy;&ocy;&jcy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy; &pcy;&rcy;&icy; &pcy;&ocy;&yacy;&vcy;&lcy;&iecy;&ncy;&icy;&icy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;. &KHcy;&ocy;&tcy;&yacy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&ocy;&mcy;&iecy;&scy;&tcy;&icy;&tcy;&softcy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy; (&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy; &zcy;&acy;&kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy; &vcy; &pcy;&rcy;&ocy;&tscy;&iecy;&ncy;&tcy;&acy;&khcy;) &vcy; URL-&acy;&dcy;&rcy;&iecy;&scy;, &ecy;&tcy;&ocy; &ncy;&iecy; &ocy;&scy;&ocy;&bcy;&iecy;&ncy;&ncy;&ocy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy; &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &kcy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;&ncy;&ocy;&mcy;&ucy; &rcy;&acy;&scy;&kcy;&rcy;&ycy;&tcy;&icy;&yucy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &ncy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&tcy;&scy;&yacy;.</span></p> </dd> </dl> </div> <div id="http-credentials-environment"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIreadapasswordortokenfromanenvironmentvariable"><span data-i18n="7c19bc7dc00252847f2936a74b7935d6ced875d4d1ae555305c57a9ac5ff50df/91" data-source="How do I read a password or token from an environment variable?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &pcy;&rcy;&ocy;&chcy;&icy;&tcy;&acy;&tcy;&softcy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy; &icy;&lcy;&icy; &tcy;&ocy;&kcy;&iecy;&ncy; &icy;&zcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;?</span></dt> <dd> <p><span data-i18n="f0b167597a04f785a46daa57a07bbc9984013d6ba6fc37e9e18700334f2ddc37/27" data-source="The &lt;code&gt;credential.helper&lt;/code&gt; configuration option can also take an arbitrary shell command that produces the credential protocol on standard output. This is useful when passing credentials into a container, for example." onmousemove="i18n(this)">&Pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>credential.helper</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&tcy;&softcy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&lcy;&softcy;&ncy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&mcy; &vcy;&ycy;&khcy;&ocy;&dcy;&iecy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&iecy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy; &kcy;&ocy;&ncy;&tcy;&iecy;&jcy;&ncy;&iecy;&rcy;.</span></p> <p><span data-i18n="985029289adf1f43ac852bad0bfdb2cdec5cb27afc2553ddfc2d18cd051edbb9/0b" data-source="Such a shell command can be specified by starting the option value with an exclamation point. If your password or token were stored in the &lt;code&gt;GIT_TOKEN&lt;/code&gt;, you could run the following command to set your credential helper:" onmousemove="i18n(this)">&Tcy;&acy;&kcy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yacy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &scy; &vcy;&ocy;&scy;&kcy;&lcy;&icy;&tscy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &zcy;&ncy;&acy;&kcy;&acy;. &IEcy;&scy;&lcy;&icy; &vcy;&acy;&shcy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy; &icy;&lcy;&icy; &tcy;&ocy;&kcy;&iecy;&ncy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&scy;&softcy; &vcy;  <code>GIT_TOKEN</code> , &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &pcy;&ocy;&mcy;&ocy;&shchcy;&ncy;&icy;&kcy;&acy; &pcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;:</span></p> <div> <div> <pre class="hljs language-lua">$ git <span class="hljs-built_in">config</span> credential.helper \
        <span class="hljs-string">&apos;!f() { echo username=author; echo &quot;password=$GIT_TOKEN&quot;; };f&apos;</span></pre> </div> </div> </dd> </dl> </div> <div id="http-reset-credentials"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIchangethepasswordortokenI8217vesavedinmycredentialmanager"><span data-i18n="bfa57835405114f61f5ac7b146c7e609c3d9e3dfa8388f4e95bea91e4c3bf712/36" data-source="How do I change the password or token I&amp;rsquo;ve saved in my credential manager?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy; &icy;&lcy;&icy; &tcy;&ocy;&kcy;&iecy;&ncy;, &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; &vcy; &dcy;&icy;&scy;&pcy;&iecy;&tcy;&chcy;&iecy;&rcy;&iecy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;?</span></dt> <dd> <p><span data-i18n="b5becb0d63f906f8a1fa834384c6aa3422739e57ddf7fb333edc05e0cff007c1/78" data-source="Usually, if the password or token is invalid, Git will erase it and prompt for a new one. However, there are times when this doesn&amp;rsquo;t always happen. To change the password or token, you can erase the existing credentials and then Git will prompt for new ones. To erase credentials, use a syntax like the following (substituting your username and the hostname):" onmousemove="i18n(this)">&Ocy;&bcy;&ycy;&chcy;&ncy;&ocy;, &iecy;&scy;&lcy;&icy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy; &icy;&lcy;&icy; &tcy;&ocy;&kcy;&iecy;&ncy; &ncy;&iecy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;,  Git  &scy;&ocy;&tcy;&rcy;&iecy;&tcy; &icy;&khcy; &icy; &pcy;&rcy;&iecy;&dcy;&lcy;&ocy;&zhcy;&icy;&tcy; &vcy;&vcy;&iecy;&scy;&tcy;&icy; &ncy;&ocy;&vcy;&ycy;&jcy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &bcy;&ycy;&vcy;&acy;&yucy;&tcy; &scy;&lcy;&ucy;&chcy;&acy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &ecy;&tcy;&ocy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&icy;&tcy; &ncy;&iecy; &vcy;&scy;&iecy;&gcy;&dcy;&acy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy; &icy;&lcy;&icy; &tcy;&ocy;&kcy;&iecy;&ncy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&tcy;&iecy;&rcy;&iecy;&tcy;&softcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy;  Git  &pcy;&rcy;&iecy;&dcy;&lcy;&ocy;&zhcy;&icy;&tcy; &vcy;&vcy;&iecy;&scy;&tcy;&icy; &ncy;&ocy;&vcy;&ycy;&iecy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &scy;&tcy;&iecy;&rcy;&iecy;&tcy;&softcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&jcy; &scy;&icy;&ncy;&tcy;&acy;&kcy;&scy;&icy;&scy; (&zcy;&acy;&mcy;&iecy;&ncy;&icy;&vcy; &scy;&vcy;&ocy;&iecy; &icy;&mcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &icy; &icy;&mcy;&yacy; &khcy;&ocy;&scy;&tcy;&acy;):</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">echo</span> url=https://<a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f9988c8d91968bb99e908dd79c81989489959cd7968b9e">[email&#160;protected]</a> | git credential reject</span></pre> </div> </div> </dd> </dl> </div> <div id="multiple-accounts-http"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIusemultipleaccountswiththesamehostingproviderusingHTTP"><span data-i18n="02a00283f777a986c2cad840c4917ad1bfef60abd58dd56a08ed5142a8df2d56/13" data-source="How do I use multiple accounts with the same hosting provider using HTTP?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &ucy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &icy; &tcy;&ocy;&gcy;&ocy; &zhcy;&iecy; &khcy;&ocy;&scy;&tcy;&icy;&ncy;&gcy;-&pcy;&rcy;&ocy;&vcy;&acy;&jcy;&dcy;&iecy;&rcy;&acy; &scy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;&mcy; HTTP?</span></dt> <dd> <p><span data-i18n="06d7e19a0cca8a14b985ec2975f8f57bbcee21c16e76842539b5a40df7f3a819/e1" data-source="Usually the easiest way to distinguish between these accounts is to use the username in the URL. For example, if you have the accounts &lt;code&gt;author&lt;/code&gt; and &lt;code&gt;committer&lt;/code&gt; on &lt;code&gt;git.example.org&lt;/code&gt;, you can use the URLs &lt;a href=&quot;https://author@git.example.org/org1/project1.git&quot;&gt;https://author@git.example.org/org1/project1.git&lt;/a&gt; and &lt;a href=&quot;https://committer@git.example.org/org2/project2.git&quot;&gt;https://committer@git.example.org/org2/project2.git&lt;/a&gt;. This way, when you use a credential helper, it will automatically try to look up the correct credentials for your account. If you already have a remote set up, you can change the URL with something like &lt;code&gt;git remote set-url
origin https://author@git.example.org/org1/project1.git&lt;/code&gt; (see &lt;a href=&quot;git-remote&quot;&gt;git-remote[1]&lt;/a&gt; for details)." onmousemove="i18n(this)">&Ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &scy;&acy;&mcy;&ycy;&jcy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy;&jcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&tcy;&softcy; &ecy;&tcy;&icy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&icy; &mdash; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&mcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &vcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&iecy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &ucy; &vcy;&acy;&scy; &iecy;&scy;&tcy;&softcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&icy;  <code>author</code>  &icy;  <code>committer</code>  &ncy;&acy;  <code>git.example.org</code> , &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy;  <a href="https://author@git.example.org/org1/project1.git">https://<span class="__cf_email__" data-cfemail="5e3f2b2a36312c1e39372a703b263f332e323b70312c39">[email&#160;protected]</span>/org1/project1.git</a>  &icy;  <a href="https://committer@git.example.org/org2/project2.git">https://<span class="__cf_email__" data-cfemail="63000c0e0e0a1717061123040a174d061b020e130f064d0c1104">[email&#160;protected]</span>/org2/project2.git</a> . &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&iecy; &pcy;&ocy;&mcy;&ocy;&shchcy;&ncy;&icy;&kcy; &pcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;, &ocy;&ncy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &pcy;&ocy;&pcy;&ycy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&acy;&jcy;&tcy;&icy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ycy;&iecy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &vcy;&acy;&shcy;&iecy;&jcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ocy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&icy;. &IEcy;&scy;&lcy;&icy; &ucy; &vcy;&acy;&scy; &ucy;&zhcy;&iecy; &iecy;&scy;&tcy;&softcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&acy;&yacy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&acy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; URL-&acy;&dcy;&rcy;&iecy;&scy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &ncy;&acy;  <code>git remote set-url
origin https://<a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="244551504c4b5664434d500a415c45495448410a4b5643">[email&#160;protected]</a>/org1/project1.git</code>  (&pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&iecy;&iecy; &scy;&mcy;.  <a href="git-remote.html">git-remote[1]</a> ).</span></p> </dd> </dl> </div> <div id="multiple-accounts-ssh"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIusemultipleaccountswiththesamehostingproviderusingSSH"><span data-i18n="6afc65af90fba2e86c7b97d2d1ed47654c7e34a9ca4f2338b8ee2fac8d4354fb/a6" data-source="How do I use multiple accounts with the same hosting provider using SSH?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &mcy;&ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &ucy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &icy; &tcy;&ocy;&gcy;&ocy; &zhcy;&iecy; &khcy;&ocy;&scy;&tcy;&icy;&ncy;&gcy;-&pcy;&rcy;&ocy;&vcy;&acy;&jcy;&dcy;&iecy;&rcy;&acy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; SSH?</span></dt> <dd> <p><span data-i18n="50129a7cc46cee8569020aa711c3c69de26736eb4c99c659a643f045bf1b9c86/32" data-source="With most hosting providers that support SSH, a single key pair uniquely identifies a user. Therefore, to use multiple accounts, it&amp;rsquo;s necessary to create a key pair for each account. If you&amp;rsquo;re using a reasonably modern OpenSSH version, you can create a new key pair with something like &lt;code&gt;ssh-keygen -t ed25519 -f ~/.ssh/id_committer&lt;/code&gt;. You can then register the public key (in this case, &lt;code&gt;~/.ssh/id_committer.pub&lt;/code&gt;; note the &lt;code&gt;.pub&lt;/code&gt;) with the hosting provider." onmousemove="i18n(this)">&Ucy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&ncy;&scy;&tcy;&vcy;&acy; &khcy;&ocy;&scy;&tcy;&icy;&ncy;&gcy;-&pcy;&rcy;&ocy;&vcy;&acy;&jcy;&dcy;&iecy;&rcy;&ocy;&vcy;, &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&shchcy;&icy;&khcy; SSH, &ocy;&dcy;&ncy;&acy; &pcy;&acy;&rcy;&acy; &kcy;&lcy;&yucy;&chcy;&iecy;&jcy; &ocy;&dcy;&ncy;&ocy;&zcy;&ncy;&acy;&chcy;&ncy;&ocy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ucy;&iecy;&tcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;. &Pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &pcy;&acy;&rcy;&ucy; &kcy;&lcy;&yucy;&chcy;&iecy;&jcy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ocy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&icy;. &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&iecy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &scy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &vcy;&iecy;&rcy;&scy;&icy;&yucy; OpenSSH, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &ncy;&ocy;&vcy;&ucy;&yucy; &pcy;&acy;&rcy;&ucy; &kcy;&lcy;&yucy;&chcy;&iecy;&jcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>ssh-keygen -t ed25519 -f ~/.ssh/id_committer</code> . &Zcy;&acy;&tcy;&iecy;&mcy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &kcy;&lcy;&yucy;&chcy;  public  (&vcy; &dcy;&acy;&ncy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;  <code>~/.ssh/id_committer.pub</code> ; &ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy; &ncy;&acy;  <code>.pub</code> ) &ucy; &khcy;&ocy;&scy;&tcy;&icy;&ncy;&gcy;-&pcy;&rcy;&ocy;&vcy;&acy;&jcy;&dcy;&iecy;&rcy;&acy;.</span></p> <p><span data-i18n="b64d792d826d717758f6c71cc899c56760065a283977d6f59e72f0bc23dc1003/db" data-source="Most hosting providers use a single SSH account for pushing; that is, all users push to the &lt;code&gt;git&lt;/code&gt; account (e.g., &lt;code&gt;git@git.example.org&lt;/code&gt;). If that&amp;rsquo;s the case for your provider, you can set up multiple aliases in SSH to make it clear which key pair to use. For example, you could write something like the following in &lt;code&gt;~/.ssh/config&lt;/code&gt;, substituting the proper private key file:" onmousemove="i18n(this)">&Bcy;&ocy;&lcy;&softcy;&shcy;&icy;&ncy;&scy;&tcy;&vcy;&ocy; &khcy;&ocy;&scy;&tcy;&icy;&ncy;&gcy;-&pcy;&rcy;&ocy;&vcy;&acy;&jcy;&dcy;&iecy;&rcy;&ocy;&vcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy; &dcy;&lcy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &ocy;&dcy;&ncy;&ucy; &ucy;&chcy;&iecy;&tcy;&ncy;&ucy;&yucy; &zcy;&acy;&pcy;&icy;&scy;&softcy; SSH; &tcy;&ocy; &iecy;&scy;&tcy;&softcy; &vcy;&scy;&iecy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&ocy;&dcy;&yacy;&tcy; &ncy;&acy; &ucy;&chcy;&iecy;&tcy;&ncy;&ucy;&yucy; &zcy;&acy;&pcy;&icy;&scy;&softcy;  <code>git</code>  (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code><a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3d5a54497d5a54491358455c504d515813524f5a">[email&#160;protected]</a></code> ). &IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &kcy;&acy;&scy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;&acy;&shcy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&vcy;&acy;&jcy;&dcy;&iecy;&rcy;&acy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&ncy;&icy;&mcy;&ocy;&vcy; &vcy; SSH, &chcy;&tcy;&ocy;&bcy;&ycy; &bcy;&ycy;&lcy;&ocy; &pcy;&ocy;&ncy;&yacy;&tcy;&ncy;&ocy;, &kcy;&acy;&kcy;&ucy;&yucy; &pcy;&acy;&rcy;&ucy; &kcy;&lcy;&yucy;&chcy;&iecy;&jcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ncy;&acy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &vcy;  <code>~/.ssh/config</code>  &chcy;&tcy;&ocy;-&tcy;&ocy; &vcy;&rcy;&ocy;&dcy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy;, &zcy;&acy;&mcy;&iecy;&ncy;&icy;&vcy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &kcy;&lcy;&yucy;&chcy;&acy;  private :</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-comment" title="# This is the account for author on git.example.org."># &Ecy;&tcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&acy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &acy;&vcy;&tcy;&ocy;&rcy;&acy; &ncy;&acy; git.example.org.</span>
Host example_author
        HostName git.example.org
        User git
        <span class="hljs-comment" title="# This is the key pair registered for author with git.example.org."># &Ecy;&tcy;&ocy; &pcy;&acy;&rcy;&acy; &kcy;&lcy;&yucy;&chcy;&iecy;&jcy;, &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&acy;&yacy; &dcy;&lcy;&yacy; &acy;&vcy;&tcy;&ocy;&rcy;&acy; &ncy;&acy; git.example.org.</span>
        IdentityFile ~/.ssh/id_author
        IdentitiesOnly <span class="hljs-built_in">yes</span>
<span class="hljs-comment" title="# This is the account for committer on git.example.org."># &Ecy;&tcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&acy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&tcy;&iecy;&rcy;&acy; &ncy;&acy; git.example.org.</span>
Host example_committer
        HostName git.example.org
        User git
        <span class="hljs-comment" title="# This is the key pair registered for committer with git.example.org."># &Ecy;&tcy;&ocy; &pcy;&acy;&rcy;&acy; &kcy;&lcy;&yucy;&chcy;&iecy;&jcy;, &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&acy;&yacy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&tcy;&iecy;&rcy;&acy; &ncy;&acy; git.example.org.</span>
        IdentityFile ~/.ssh/id_committer
        IdentitiesOnly <span class="hljs-built_in">yes</span></pre> </div> </div> <p><span data-i18n="aff434a0cc529ccccf2b4e676c2222488d509afe0b8efe079a8e012224cb5255/69" data-source="Then, you can adjust your push URL to use &lt;code&gt;git@example_author&lt;/code&gt; or &lt;code&gt;git@example_committer&lt;/code&gt; instead of &lt;code&gt;git@example.org&lt;/code&gt; (e.g., &lt;code&gt;git remote set-url
git@example_author:org1/project1.git&lt;/code&gt;)." onmousemove="i18n(this)">&Zcy;&acy;&tcy;&iecy;&mcy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; URL-&acy;&dcy;&rcy;&iecy;&scy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>git@example_author</code>  &icy;&lcy;&icy;  <code>git@example_committer</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy;  <code><a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="60070914200518010d100c054e0f1207">[email&#160;protected]</a></code>  (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>git remote set-url
git@example_author:org1/project1.git</code> ).</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_common_issues"><span data-i18n="1bfad7de8e0de95f0564f25c2644df9da199c50d98ba8fb8b4c836e1576fab97/ea" data-source="Common issues" onmousemove="i18n(this)">Common issues</span></h2> <div> <div id="last-commit-amend"> <dl> <dt id="Documentation/gitfaq.txt-I8217vemadeamistakeinthelastcommitHowdoIchangeit"><span data-i18n="697a6a21fa08094abbc0c3606ce96334d7eb9aedee51f45f2b4807f33f8b8656/0b" data-source="I&amp;rsquo;ve made a mistake in the last commit. How do I change it?" onmousemove="i18n(this)">&YAcy; &dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&lcy; &ocy;&shcy;&icy;&bcy;&kcy;&ucy; &vcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&mcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&iecy;. &Kcy;&acy;&kcy; &mcy;&ncy;&iecy; &ecy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;?</span></dt> <dd> <p><span data-i18n="fc591f8af55d157a0534bf7627ce88af54c04cc5024cb8b41558a7adc680b2d9/58" data-source="You can make the appropriate change to your working tree, run &lt;code&gt;git add
&amp;lt;file&amp;gt;&lt;/code&gt; or &lt;code&gt;git rm &amp;lt;file&amp;gt;&lt;/code&gt;, as appropriate, to stage it, and then &lt;code&gt;git
commit --amend&lt;/code&gt;. Your change will be included in the commit, and you&amp;rsquo;ll be prompted to edit the commit message again; if you wish to use the original message verbatim, you can use the &lt;code&gt;--no-edit&lt;/code&gt; option to &lt;code&gt;git
commit&lt;/code&gt; in addition, or just save and quit when your editor opens." onmousemove="i18n(this)">&Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&ncy;&iecy;&scy;&tcy;&icy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &scy;&vcy;&ocy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;, &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy;  <code>git add
&lt;file&gt;</code>  &icy;&lcy;&icy;  <code>git rm &lt;file&gt;</code> , &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &scy;&icy;&tcy;&ucy;&acy;&tscy;&icy;&icy;, &dcy;&lcy;&yacy; &iecy;&gcy;&ocy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&kcy;&icy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy;  <code>git
commit --amend</code> . &Vcy;&acy;&shcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy; &vcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy;, &icy; &vcy;&acy;&mcy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ocy; &scy;&ncy;&ocy;&vcy;&acy; &ocy;&tcy;&rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;; &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &dcy;&ocy;&scy;&lcy;&ocy;&vcy;&ncy;&ocy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&pcy;&tscy;&icy;&yucy;  <code>--no-edit</code>  &dcy;&lcy;&yacy;  <code>git
commit</code>  &icy;&lcy;&icy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &icy; &vcy;&ycy;&jcy;&tcy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&tcy;&kcy;&rcy;&ocy;&iecy;&tcy;&scy;&yacy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;.</span></p> </dd> </dl> </div> <div id="undo-previous-change"> <dl> <dt id="Documentation/gitfaq.txt-I8217vemadeachangewithabugandit8217sbeenincludedinthemainbranchHowshouldIundoit"><span data-i18n="82dee759bce858af9847510647ce2be2be879be63826868f1385725ad1257605/bc" data-source="I&amp;rsquo;ve made a change with a bug and it&amp;rsquo;s been included in the main branch. How should I undo it?" onmousemove="i18n(this)">&YAcy; &vcy;&ncy;&iecy;&scy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &scy; &ocy;&shcy;&icy;&bcy;&kcy;&ocy;&jcy;, &icy; &ocy;&ncy;&ocy; &bcy;&ycy;&lcy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy; &vcy; &ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ucy;&yucy; &vcy;&iecy;&tcy;&kcy;&ucy;. &Kcy;&acy;&kcy; &mcy;&ncy;&iecy; &ecy;&tcy;&ocy; &ocy;&tcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;?</span></dt> <dd> <p><span data-i18n="1cd50027cb019ea70e8d7b6f7eb1ee57afcee812fb4ca632ed076391695d5a3b/9e" data-source="The usual way to deal with this is to use &lt;code&gt;git revert&lt;/code&gt;. This preserves the history that the original change was made and was a valuable contribution, but also introduces a new commit that undoes those changes because the original had a problem. The commit message of the revert indicates the commit which was reverted and is usually edited to include an explanation as to why the revert was made." onmousemove="i18n(this)">&Ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&jcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy; &scy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy;&scy;&yacy; &scy; &ecy;&tcy;&icy;&mcy; &mdash; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>git revert</code> . &Ecy;&tcy;&ocy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&yucy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &bcy;&ycy;&lcy;&ocy; &vcy;&ncy;&iecy;&scy;&iecy;&ncy;&ocy; &icy; &bcy;&ycy;&lcy;&ocy; &tscy;&iecy;&ncy;&ncy;&ycy;&mcy; &vcy;&kcy;&lcy;&acy;&dcy;&ocy;&mcy;, &ncy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&vcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&ocy;&vcy;&ycy;&jcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ocy;&tcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &ecy;&tcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &vcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&mcy; &bcy;&ycy;&lcy;&acy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&acy;. &Scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;&acy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &ncy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &bcy;&ycy;&lcy;&acy; &ocy;&tcy;&mcy;&iecy;&ncy;&iecy;&ncy;&acy;, &icy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &ocy;&bcy;&hardcy;&yacy;&scy;&ncy;&iecy;&ncy;&icy;&iecy; &tcy;&ocy;&gcy;&ocy;, &pcy;&ocy;&chcy;&iecy;&mcy;&ucy; &bcy;&ycy;&lcy; &scy;&dcy;&iecy;&lcy;&acy;&ncy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;.</span></p> </dd> </dl> </div> <div id="ignore-tracked-files"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIignorechangestoatrackedfile"><span data-i18n="6fe0cc3566fbe6916eac79eb2984afa14c0ee213eb00766d919406505d9479ad/bd" data-source="How do I ignore changes to a tracked file?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&iecy;?</span></dt> <dd> <p><span data-i18n="f0d08b96ea263ff963d2f5d74efcf287072f2ff547c4d1961887dabc08c5d1b8/43" data-source="Git doesn&amp;rsquo;t provide a way to do this. The reason is that if Git needs to overwrite this file, such as during a checkout, it doesn&amp;rsquo;t know whether the changes to the file are precious and should be kept, or whether they are irrelevant and can safely be destroyed. Therefore, it has to take the safe route and always preserve them." onmousemove="i18n(this)">Git  &ncy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy;. &Pcy;&rcy;&icy;&chcy;&icy;&ncy;&acy; &vcy; &tcy;&ocy;&mcy;, &chcy;&tcy;&ocy; &iecy;&scy;&lcy;&icy;  Git  &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy;&tcy; &fcy;&acy;&jcy;&lcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &ocy;&ncy; &ncy;&iecy; &zcy;&ncy;&acy;&iecy;&tcy;, &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &lcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy; &tscy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &icy; &icy;&khcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy;, &icy;&lcy;&icy; &ocy;&ncy;&icy; &ncy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &icy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy; &ucy;&ncy;&icy;&chcy;&tcy;&ocy;&zhcy;&iecy;&ncy;&ycy;. &Pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &iecy;&mcy;&ucy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&tcy;&softcy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ycy;&jcy; &mcy;&acy;&rcy;&shcy;&rcy;&ucy;&tcy; &icy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&tcy;&softcy; &iecy;&gcy;&ocy;.</span></p> <p><span data-i18n="ff06e1a11ffac2452cd01942169ed900e93858d6f6357bcb029a15b23d40d962/a2" data-source="It&amp;rsquo;s tempting to try to use certain features of &lt;code&gt;git update-index&lt;/code&gt;, namely the assume-unchanged and skip-worktree bits, but these don&amp;rsquo;t work properly for this purpose and shouldn&amp;rsquo;t be used this way." onmousemove="i18n(this)">&Scy;&ocy;&bcy;&lcy;&acy;&zcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &pcy;&ocy;&pcy;&ycy;&tcy;&acy;&tcy;&softcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy;  <code>git update-index</code> , &acy; &icy;&mcy;&iecy;&ncy;&ncy;&ocy; &bcy;&icy;&tcy;&ycy; &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&ocy;&zhcy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy;&icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &icy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &ncy;&ocy; &ocy;&ncy;&icy; &ncy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&tcy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&jcy; &tscy;&iecy;&lcy;&icy; &icy; &ncy;&iecy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;.</span></p> <p><span data-i18n="8ba0077f124df52b9b72fd3860460adb94b39ed4f5374f6bdeedc8bd3aa4d1b5/bc" data-source="If your goal is to modify a configuration file, it can often be helpful to have a file checked into the repository which is a template or set of defaults which can then be copied alongside and modified as appropriate. This second, modified file is usually ignored to prevent accidentally committing it." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&acy;&shcy;&acy; &tscy;&iecy;&lcy;&softcy; &mdash; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &chcy;&acy;&scy;&tcy;&ocy; &bcy;&ycy;&vcy;&acy;&iecy;&tcy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &fcy;&acy;&jcy;&lcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy; &icy;&lcy;&icy; &ncy;&acy;&bcy;&ocy;&rcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &zcy;&acy;&tcy;&iecy;&mcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &scy;&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;. &Ecy;&tcy;&ocy;&tcy; &vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &iecy;&gcy;&ocy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;&ncy;&ocy;&iecy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&iecy;.</span></p> </dd> </dl> </div> <div id="files-in-gitignore-are-tracked"> <dl> <dt id="Documentation/gitfaq.txt-IaskedGittoignorevariousfilesyettheyarestilltracked"><span data-i18n="f72cacfcc353cee63b76b84e360b8372dd1b00518de6ab82c05b814ef5fd444f/5d" data-source="I asked Git to ignore various files, yet they are still tracked" onmousemove="i18n(this)">&YAcy; &pcy;&ocy;&pcy;&rcy;&ocy;&scy;&icy;&lcy;  Git  &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &ncy;&ocy; &ocy;&ncy;&icy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy;.</span></dt> <dd> <p><span data-i18n="61dbbf296cb3e972a7120e0bdc277b88a96d41889ee91e653a80800e0a160062/9d" data-source="A &lt;code&gt;gitignore&lt;/code&gt; file ensures that certain file(s) which are not tracked by Git remain untracked. However, sometimes particular file(s) may have been tracked before adding them into the &lt;code&gt;.gitignore&lt;/code&gt;, hence they still remain tracked. To untrack and ignore files/patterns, use &lt;code&gt;git rm --cached &amp;lt;file/pattern&amp;gt;&lt;/code&gt; and add a pattern to &lt;code&gt;.gitignore&lt;/code&gt; that matches the &amp;lt;file&amp;gt;. See &lt;a href=&quot;gitignore&quot;&gt;gitignore[5]&lt;/a&gt; for details." onmousemove="i18n(this)">&Fcy;&acy;&jcy;&lcy;  <code>gitignore</code>  &gcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;, &chcy;&tcy;&ocy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy;  Git , &ocy;&scy;&tcy;&acy;&yucy;&tcy;&scy;&yacy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&mcy;&icy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &icy;&ncy;&ocy;&gcy;&dcy;&acy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&iecy;&ncy;&ycy; &dcy;&ocy; &icy;&khcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;  <code>.gitignore</code> , &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &ocy;&ncy;&icy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &ocy;&scy;&tcy;&acy;&yucy;&tcy;&scy;&yacy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&mcy;&icy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &ocy;&tcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy; &icy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy;/&shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>git rm --cached &lt;file/pattern&gt;</code>  &icy; &dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &vcy;  <code>.gitignore</code>  &shcy;&acy;&bcy;&lcy;&ocy;&ncy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy; &lt;file&gt;. &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&mcy;. &vcy;  <a href="gitignore.html">gitignore[5]</a> .</span></p> </dd> </dl> </div> <div id="fetching-and-pulling"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIknowifIwanttodoafetchorapull"><span data-i18n="bbee31c36131632909563b85fb1e3506b4b7e1b969eea8a3919b9fe5022efd1d/e7" data-source="How do I know if I want to do a fetch or a pull?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &mcy;&ncy;&iecy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &khcy;&ocy;&chcy;&ucy; &lcy;&icy; &yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&ucy; &icy;&lcy;&icy; &vcy;&ycy;&tcy;&yacy;&gcy;&icy;&vcy;&acy;&ncy;&icy;&iecy;?</span></dt> <dd> <p><span data-i18n="2cf1573d3b1ce9735dbdb407d288204156e61f53630e6e33d32fe9e951c795ee/9e" data-source="A fetch stores a copy of the latest changes from the remote repository, without modifying the working tree or current branch. You can then at your leisure inspect, merge, rebase on top of, or ignore the upstream changes. A pull consists of a fetch followed immediately by either a merge or rebase. See &lt;a href=&quot;git-pull&quot;&gt;git-pull[1]&lt;/a&gt;." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&iecy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&pcy;&icy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &icy;&zcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &bcy;&iecy;&zcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &icy;&lcy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy;. &Zcy;&acy;&tcy;&iecy;&mcy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ncy;&acy; &dcy;&ocy;&scy;&ucy;&gcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&icy;&tcy;&softcy;, &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&lcy;&icy; &pcy;&rcy;&ocy;&icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy;&ycy;&shcy;&iecy;&scy;&tcy;&ocy;&yacy;&shchcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;. &Icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&icy;&tcy; &icy;&zcy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy;, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &ncy;&iecy;&mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&ocy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &icy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;. &Scy;&mcy;.  <a href="git-pull.html">git-pull[1]</a> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_merging_and_rebasing"><span data-i18n="f76e8532f557ae8667325147d71f835b034696f62a7533812b8a11848f36ffa6/08" data-source="Merging and rebasing" onmousemove="i18n(this)">&Scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;</span></h2> <div> <div id="long-running-squash-merge"> <dl> <dt id="Documentation/gitfaq.txt-Whatkindsofproblemscanoccurwhenmerginglong-livedbrancheswithsquashmerges"><span data-i18n="02717bea83f2b02b280fbd3e6eac4a9d8b56459411ffd868810d487d8fc3e271/c8" data-source="What kinds of problems can occur when merging long-lived branches with squash merges?" onmousemove="i18n(this)">&Kcy;&acy;&kcy;&icy;&iecy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&ncy;&ucy;&tcy;&softcy; &pcy;&rcy;&icy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&icy; &dcy;&ocy;&lcy;&gcy;&ocy;&zhcy;&icy;&vcy;&ucy;&shchcy;&icy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &scy;&kcy;&vcy;&ocy;&shcy;-&scy;&lcy;&icy;&yacy;&ncy;&icy;&jcy;?</span></dt> <dd> <p><span data-i18n="0fa2b029a266a0657e8f49b4fd202454d157f56ba9c7175ea6e4fabdc3674844/64" data-source="In general, there are a variety of problems that can occur when using squash merges to merge two branches multiple times. These can include seeing extra commits in &lt;code&gt;git log&lt;/code&gt; output, with a GUI, or when using the &lt;code&gt;...&lt;/code&gt; notation to express a range, as well as the possibility of needing to re-resolve conflicts again and again." onmousemove="i18n(this)">&Vcy; &ocy;&bcy;&shchcy;&iecy;&mcy;, &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &mcy;&ocy;&gcy;&ucy;&tcy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&ncy;&ucy;&tcy;&softcy; &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &scy;&kcy;&vcy;&ocy;&shcy;-&scy;&lcy;&icy;&yacy;&ncy;&icy;&jcy; &dcy;&lcy;&yacy; &mcy;&ncy;&ocy;&gcy;&ocy;&kcy;&rcy;&acy;&tcy;&ncy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy; &dcy;&vcy;&ucy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy;. &Ocy;&ncy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &vcy; &scy;&iecy;&bcy;&yacy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &vcy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>git log</code> , &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &gcy;&rcy;&acy;&fcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&gcy;&ocy; &icy;&ncy;&tcy;&iecy;&rcy;&fcy;&iecy;&jcy;&scy;&acy; &icy;&lcy;&icy; &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &ncy;&ocy;&tcy;&acy;&tscy;&icy;&icy;  <code>...</code>  &dcy;&lcy;&yacy; &vcy;&ycy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yacy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&acy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &scy;&ncy;&ocy;&vcy;&acy; &icy; &scy;&ncy;&ocy;&vcy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy;.</span></p> <p><span data-i18n="023fa9da88ca440676c905a4597f737c31d86c63c72ec7fc1b87087554f1bd3a/86" data-source="When Git does a normal merge between two branches, it considers exactly three points: the two branches and a third commit, called the &lt;code&gt;merge base&lt;/code&gt;, which is usually the common ancestor of the commits. The result of the merge is the sum of the changes between the merge base and each head. When you merge two branches with a regular merge commit, this results in a new commit which will end up as a merge base when they&amp;rsquo;re merged again, because there is now a new common ancestor. Git doesn&amp;rsquo;t have to consider changes that occurred before the merge base, so you don&amp;rsquo;t have to re-resolve any conflicts you resolved before." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy;  Git  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &mcy;&iecy;&zhcy;&dcy;&ucy; &dcy;&vcy;&ucy;&mcy;&yacy; &vcy;&iecy;&tcy;&vcy;&yacy;&mcy;&icy;, &ocy;&ncy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &rcy;&ocy;&vcy;&ncy;&ocy; &tcy;&rcy;&icy; &tcy;&ocy;&chcy;&kcy;&icy;: &dcy;&vcy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &icy; &tcy;&rcy;&iecy;&tcy;&icy;&jcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;, &ncy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&mcy;&ycy;&jcy;  <code>merge base</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&shchcy;&icy;&mcy; &pcy;&rcy;&iecy;&dcy;&kcy;&ocy;&mcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;. &Rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ocy;&mcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &scy;&ucy;&mcy;&mcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &mcy;&iecy;&zhcy;&dcy;&ucy; &bcy;&acy;&zcy;&ocy;&jcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &icy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&ocy;&jcy;. &Kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&iecy;&tcy;&iecy; &dcy;&vcy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;, &ecy;&tcy;&ocy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yucy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy; &kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ocy;&mcy; &icy;&tcy;&ocy;&gcy;&iecy; &scy;&tcy;&acy;&ncy;&iecy;&tcy; &bcy;&acy;&zcy;&ocy;&jcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &pcy;&rcy;&icy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy;&mcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&icy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &tcy;&iecy;&pcy;&iecy;&rcy;&softcy; &iecy;&scy;&tcy;&softcy; &ncy;&ocy;&vcy;&ycy;&jcy; &ocy;&bcy;&shchcy;&icy;&jcy; &pcy;&rcy;&iecy;&dcy;&ocy;&kcy;.  Git  &ncy;&iecy; &ncy;&ucy;&zhcy;&ncy;&ocy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&shcy;&iecy;&dcy;&shcy;&icy;&iecy; &dcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy; &bcy;&acy;&zcy;&ycy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&acy;&mcy; &ncy;&iecy; &pcy;&rcy;&icy;&dcy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&ycy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&lcy;&icy; &rcy;&acy;&ncy;&iecy;&iecy;.</span></p> <p><span data-i18n="1f4a7fa271956c415fd18feb846fe4879f7e3c2a44478772bc3d8e0ee9df58af/f5" data-source="When you perform a squash merge, a merge commit isn&amp;rsquo;t created; instead, the changes from one side are applied as a regular commit to the other side. This means that the merge base for these branches won&amp;rsquo;t have changed, and so when Git goes to perform its next merge, it considers all of the changes that it considered the last time plus the new changes. That means any conflicts may need to be re-resolved. Similarly, anything using the &lt;code&gt;...&lt;/code&gt; notation in &lt;code&gt;git
diff&lt;/code&gt;, &lt;code&gt;git log&lt;/code&gt;, or a GUI will result in showing all of the changes since the original merge base." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&iecy; &scy;&zhcy;&acy;&tcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &ncy;&iecy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy;; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &scy; &ocy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ycy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &ocy;&bcy;&ycy;&chcy;&ncy;&acy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy; &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy;. &Ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &bcy;&acy;&zcy;&acy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &dcy;&lcy;&yacy; &ecy;&tcy;&icy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&scy;&yacy;, &icy; &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy;, &kcy;&ocy;&gcy;&dcy;&acy;  Git  &pcy;&rcy;&icy;&scy;&tcy;&ucy;&pcy;&acy;&iecy;&tcy; &kcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&mcy;&ucy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yucy;, &ocy;&ncy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &vcy;&scy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&ncy; &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&lcy; &vcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &rcy;&acy;&zcy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &ncy;&ocy;&vcy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &lcy;&yucy;&bcy;&ycy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy;, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &pcy;&rcy;&icy;&dcy;&iecy;&tcy;&scy;&yacy; &rcy;&iecy;&shcy;&acy;&tcy;&softcy; &zcy;&acy;&ncy;&ocy;&vcy;&ocy;. &Acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ocy;, &vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &ncy;&ocy;&tcy;&acy;&tscy;&icy;&yucy;  <code>...</code>  &vcy;  <code>git
diff</code> ,  <code>git log</code>  &icy;&lcy;&icy; &gcy;&rcy;&acy;&fcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&mcy; &icy;&ncy;&tcy;&iecy;&rcy;&fcy;&iecy;&jcy;&scy;&iecy;, &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yucy; &vcy;&scy;&iecy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &scy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&acy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&jcy; &bcy;&acy;&zcy;&ycy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="3c58f812c2ae60f34735d7f0c0dc48efbd5c1fba81f6559f7adf3745012e84a9/32" data-source="As a consequence, if you want to merge two long-lived branches repeatedly, it&amp;rsquo;s best to always use a regular merge commit." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &scy;&lcy;&iecy;&dcy;&scy;&tcy;&vcy;&icy;&iecy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&icy;&tcy;&softcy; &dcy;&vcy;&iecy; &dcy;&ocy;&lcy;&gcy;&ocy;&zhcy;&icy;&vcy;&ucy;&shchcy;&icy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy;, &lcy;&ucy;&chcy;&shcy;&iecy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ucy;&yucy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;.</span></p> </dd> </dl> </div> <div id="merge-two-revert-one"> <dl> <dt id="Documentation/gitfaq.txt-IfImakeachangeontwobranchesbutrevertitononewhydoesthemergeofthosebranchesincludethechange"><span data-i18n="6e3e5f6972244aa5143146a36839b3cf6c9ab6c7da25c8b2a005e889cc169bd9/2b" data-source="If I make a change on two branches but revert it on one, why does the merge of those branches include the change?" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &yacy; &vcy;&ncy;&ocy;&shcy;&ucy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &vcy; &dcy;&vcy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy;, &ncy;&ocy; &ocy;&tcy;&mcy;&iecy;&ncy;&yacy;&yucy; &iecy;&gcy;&ocy; &vcy; &ocy;&dcy;&ncy;&ocy;&jcy;, &pcy;&ocy;&chcy;&iecy;&mcy;&ucy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &ecy;&tcy;&icy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &vcy; &scy;&iecy;&bcy;&yacy; &ecy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy;?</span></dt> <dd> <p><span data-i18n="de25db31ad3bda0b54556302ba20779cfb6cc1c3356ad6d1b81147929427bbf0/56" data-source="By default, when Git does a merge, it uses a strategy called the &lt;code&gt;ort&lt;/code&gt; strategy, which does a fancy three-way merge. In such a case, when Git performs the merge, it considers exactly three points: the two heads and a third point, called the &lt;code&gt;merge base&lt;/code&gt;, which is usually the common ancestor of those commits. Git does not consider the history or the individual commits that have happened on those branches at all." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &kcy;&ocy;&gcy;&dcy;&acy;  Git  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &ocy;&ncy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &scy;&tcy;&rcy;&acy;&tcy;&iecy;&gcy;&icy;&yucy;, &ncy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&mcy;&ucy;&yucy; &scy;&tcy;&rcy;&acy;&tcy;&iecy;&gcy;&icy;&iecy;&jcy;  <code>ort</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &ncy;&iecy;&ocy;&bcy;&ycy;&chcy;&ncy;&ocy;&iecy; &tcy;&rcy;&iecy;&khcy;&scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ncy;&iecy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;. &Vcy; &tcy;&acy;&kcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;, &kcy;&ocy;&gcy;&dcy;&acy;  Git  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &ocy;&ncy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &rcy;&ocy;&vcy;&ncy;&ocy; &tcy;&rcy;&icy; &tcy;&ocy;&chcy;&kcy;&icy;: &dcy;&vcy;&iecy; &gcy;&ocy;&lcy;&ocy;&vcy;&ycy; &icy; &tcy;&rcy;&iecy;&tcy;&softcy;&yucy; &tcy;&ocy;&chcy;&kcy;&ucy;, &ncy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&mcy;&ucy;&yucy;  <code>merge base</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&shchcy;&icy;&mcy; &pcy;&rcy;&iecy;&dcy;&kcy;&ocy;&mcy; &ecy;&tcy;&icy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;.  Git  &vcy;&ocy;&ocy;&bcy;&shchcy;&iecy; &ncy;&iecy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&yucy; &icy;&lcy;&icy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&shcy;&iecy;&dcy;&shcy;&icy;&iecy; &vcy; &ecy;&tcy;&icy;&khcy; &vcy;&iecy;&tcy;&vcy;&yacy;&khcy;.</span></p> <p><span data-i18n="f5e69e47d0072b1dc9a973d4a4eb3d55c4576f9f9a4e547ebf99e68d379222c3/0a" data-source="As a result, if both sides have a change and one side has reverted that change, the result is to include the change. This is because the code has changed on one side and there is no net change on the other, and in this scenario, Git adopts the change." onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy;, &iecy;&scy;&lcy;&icy; &ocy;&bcy;&iecy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ycy; &icy;&mcy;&iecy;&yucy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy;, &acy; &ocy;&dcy;&ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&acy; &ocy;&tcy;&mcy;&iecy;&ncy;&icy;&lcy;&acy; &ecy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy;, &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ocy;&mcy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &scy;&vcy;&yacy;&zcy;&acy;&ncy;&ocy; &scy; &tcy;&iecy;&mcy;, &chcy;&tcy;&ocy; &kcy;&ocy;&dcy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&scy;&yacy; &scy; &ocy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ycy;, &acy; &scy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &ncy;&iecy;&tcy; &chcy;&icy;&scy;&tcy;&ycy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;, &icy; &vcy; &ecy;&tcy;&ocy;&mcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&icy;  Git  &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="e9cf85eb8774cdfff788c89829fb35c15aad332a79a940bec9e3c21c7b36a639/ab" data-source="If this is a problem for you, you can do a rebase instead, rebasing the branch with the revert onto the other branch. A rebase in this scenario will revert the change, because a rebase applies each individual commit, including the revert. Note that rebases rewrite history, so you should avoid rebasing published branches unless you&amp;rsquo;re sure you&amp;rsquo;re comfortable with that. See the NOTES section in &lt;a href=&quot;git-rebase&quot;&gt;git-rebase[1]&lt;/a&gt; for more details." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &dcy;&lcy;&yacy; &vcy;&acy;&scy; &ecy;&tcy;&ocy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&acy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;, &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&vcy; &vcy;&iecy;&tcy;&kcy;&ucy; &scy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;&ocy;&mcy; &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ucy;&yucy; &vcy;&iecy;&tcy;&kcy;&ucy;. &Pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &vcy; &ecy;&tcy;&ocy;&mcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&icy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &ocy;&tcy;&mcy;&iecy;&ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&acy;&zhcy;&dcy;&acy;&yacy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&acy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy;, &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&yucy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&acy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &icy;&zcy;&bcy;&iecy;&gcy;&acy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ocy;&pcy;&ucy;&bcy;&lcy;&icy;&kcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &ncy;&iecy; &ucy;&vcy;&iecy;&rcy;&iecy;&ncy;&ycy;, &chcy;&tcy;&ocy; &vcy;&acy;&scy; &ecy;&tcy;&ocy; &ucy;&scy;&tcy;&rcy;&acy;&icy;&vcy;&acy;&iecy;&tcy;. &Dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &scy;&mcy;. &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy; &laquo;&Pcy;&Rcy;&Icy;&Mcy;&IEcy;&CHcy;&Acy;&Ncy;&Icy;&YAcy;&raquo; &vcy;  <a href="git-rebase.html">git-rebase[1]</a> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_hooks"><span data-i18n="d412a062620ef57bace76558a0384077b1919e66ba0a35af91e5a372f873e65e/9c" data-source="Hooks" onmousemove="i18n(this)">Hooks</span></h2> <div> <div id="restrict-with-hooks"> <dl> <dt id="Documentation/gitfaq.txt-HowdoIusehookstopreventusersfrommakingcertainchanges"><span data-i18n="b18fd9224895b8bc993fbfa3b3e73595bdb11b34833112a851283c42e487c8f7/cd" data-source="How do I use hooks to prevent users from making certain changes?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &ncy;&iecy; &mcy;&ocy;&gcy;&lcy;&icy; &vcy;&ncy;&ocy;&scy;&icy;&tcy;&softcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;?</span></dt> <dd> <p><span data-i18n="8d19c9dc41240a8e81b4f42bd50507964c527733cb9dcda580f056cc8925a8f1/98" data-source="The only safe place to make these changes is on the remote repository (i.e., the Git server), usually in the &lt;code&gt;pre-receive&lt;/code&gt; hook or in a continuous integration (CI) system. These are the locations in which policy can be enforced effectively." onmousemove="i18n(this)">&IEcy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy;&iecy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy;&iecy; &mcy;&iecy;&scy;&tcy;&ocy; &dcy;&lcy;&yacy; &vcy;&ncy;&iecy;&scy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&icy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &mdash; &ecy;&tcy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; (&tcy;. &iecy;. &scy;&iecy;&rcy;&vcy;&iecy;&rcy;  Git ), &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &vcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&iecy;  <code>pre-receive</code>  &icy;&lcy;&icy; &vcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&iecy; &ncy;&iecy;&pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&ncy;&ocy;&jcy; &icy;&ncy;&tcy;&iecy;&gcy;&rcy;&acy;&tscy;&icy;&icy; (CI). &Ecy;&tcy;&ocy; &tcy;&iecy; &mcy;&iecy;&scy;&tcy;&acy;, &gcy;&dcy;&iecy; &pcy;&ocy;&lcy;&icy;&tcy;&icy;&kcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy;.</span></p> <p><span data-i18n="8239ff151fef40d7c4a7c556c100fae9a48f6164ca927221f4c79e40abfa26e7/06" data-source="It&amp;rsquo;s common to try to use &lt;code&gt;pre-commit&lt;/code&gt; hooks (or, for commit messages, &lt;code&gt;commit-msg&lt;/code&gt; hooks) to check these things, which is great if you&amp;rsquo;re working as a solo developer and want the tooling to help you. However, using hooks on a developer machine is not effective as a policy control because a user can bypass these hooks with &lt;code&gt;--no-verify&lt;/code&gt; without being noticed (among various other ways). Git assumes that the user is in control of their local repositories and doesn&amp;rsquo;t try to prevent this or tattle on the user." onmousemove="i18n(this)">&Ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &dcy;&lcy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &ecy;&tcy;&icy;&khcy; &vcy;&iecy;&shchcy;&iecy;&jcy; &pcy;&ycy;&tcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy;  <code>pre-commit</code>  (&icy;&lcy;&icy;, &dcy;&lcy;&yacy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&jcy; &ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy;  <code>commit-msg</code> ), &icy; &ecy;&tcy;&ocy; &zcy;&dcy;&ocy;&rcy;&ocy;&vcy;&ocy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy;&iecy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &icy;&ncy;&dcy;&icy;&vcy;&icy;&dcy;&ucy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&chcy;&icy;&kcy;&acy; &icy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ecy;&tcy;&ocy;&tcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&rcy;&icy;&jcy; &vcy;&acy;&mcy; &pcy;&ocy;&mcy;&ocy;&gcy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ocy;&vcy; &ncy;&acy; &kcy;&ocy;&mcy;&pcy;&softcy;&yucy;&tcy;&iecy;&rcy;&iecy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&chcy;&icy;&kcy;&acy; &ncy;&iecy;&ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&yacy; &pcy;&ocy;&lcy;&icy;&tcy;&icy;&kcy;&icy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ncy;&iecy;&zcy;&acy;&mcy;&iecy;&tcy;&ncy;&ocy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &ecy;&tcy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>--no-verify</code>  (&scy;&rcy;&iecy;&dcy;&icy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&ocy;&vcy;).  Git  &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&acy;&gcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&icy;&rcy;&ucy;&iecy;&tcy; &scy;&vcy;&ocy;&icy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &icy; &ncy;&iecy; &pcy;&ycy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy; &icy;&lcy;&icy; &scy;&pcy;&lcy;&iecy;&tcy;&ncy;&icy;&chcy;&acy;&tcy;&softcy; &ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;.</span></p> <p><span data-i18n="0225b901cf2503be2ecf9bfdbaaeae4203438927d678091537d04c6210bb0fee/fb" data-source="In addition, some advanced users find &lt;code&gt;pre-commit&lt;/code&gt; hooks to be an impediment to workflows that use temporary commits to stage work in progress or that create fixup commits, so it&amp;rsquo;s better to push these kinds of checks to the server anyway." onmousemove="i18n(this)">&Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&pcy;&ycy;&tcy;&ncy;&ycy;&iecy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &scy;&chcy;&icy;&tcy;&acy;&yucy;&tcy;, &chcy;&tcy;&ocy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy;  <code>pre-commit</code>  &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &pcy;&rcy;&iecy;&pcy;&yacy;&tcy;&scy;&tcy;&vcy;&icy;&iecy;&mcy; &dcy;&lcy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&khcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &ecy;&tcy;&acy;&pcy;&acy; &ncy;&iecy;&zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&ncy;&ocy;&jcy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy; &icy;&lcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&yucy;&tcy; &kcy;&ocy;&rcy;&rcy;&iecy;&kcy;&tcy;&icy;&rcy;&ucy;&yucy;&shchcy;&icy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy; &lcy;&yucy;&bcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &lcy;&ucy;&chcy;&shcy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &tcy;&acy;&kcy;&icy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_cross_platform_issues"><span data-i18n="72d82db117675d9f71982ba40fecdfd014ca6687f236def63721540c79fe0ed9/48" data-source="Cross-platform issues" onmousemove="i18n(this)">Cross-platform issues</span></h2> <div> <div id="windows-text-binary"> <dl> <dt id="Documentation/gitfaq.txt-I8217monWindowsandmytextfilesaredetectedasbinary"><span data-i18n="44ce4648d7e837b323c90bd11a41b8c6ab2cd3054cfde6c81e58d48c842bdb84/f0" data-source="I&amp;rsquo;m on Windows and my text files are detected as binary." onmousemove="i18n(this)">&YAcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy; Windows, &icy; &mcy;&ocy;&icy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&iecy;.</span></dt> <dd> <p><span data-i18n="fc44583b1b2b2bcb5ac52a4a4df95049b9f392d603f34362c5b4b34571e0e7d9/8e" data-source="Git works best when you store text files as UTF-8. Many programs on Windows support UTF-8, but some do not and only use the little-endian UTF-16 format, which Git detects as binary. If you can&amp;rsquo;t use UTF-8 with your programs, you can specify a working tree encoding that indicates which encoding your files should be checked out with, while still storing these files as UTF-8 in the repository. This allows tools like &lt;a href=&quot;git-diff&quot;&gt;git-diff[1]&lt;/a&gt; to work as expected, while still allowing your tools to work." onmousemove="i18n(this)">Git  &lcy;&ucy;&chcy;&shcy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy; &pcy;&rcy;&icy; &khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&icy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; UTF-8. &Mcy;&ncy;&ocy;&gcy;&icy;&iecy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&ycy; &vcy; Windows &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy; UTF-8, &ncy;&ocy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy;&tcy; &icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; UTF-16 &scy; &pcy;&rcy;&yacy;&mcy;&ycy;&mcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&ocy;&mcy; &bcy;&acy;&jcy;&tcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy;  Git  &rcy;&acy;&scy;&pcy;&ocy;&zcy;&ncy;&acy;&iecy;&tcy; &kcy;&acy;&kcy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&jcy;. &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; UTF-8 &vcy; &scy;&vcy;&ocy;&icy;&khcy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&acy;&khcy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&kcy;&ucy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;, &scy; &kcy;&acy;&kcy;&ocy;&jcy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&kcy;&ocy;&jcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &icy;&zcy;&vcy;&lcy;&iecy;&kcy;&acy;&tcy;&softcy; &vcy;&acy;&shcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy;, &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yacy; &pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &ecy;&tcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &kcy;&acy;&kcy; UTF-8. &Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &tcy;&acy;&kcy;&icy;&mcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;, &kcy;&acy;&kcy;  <a href="git-diff.html">git-diff[1]</a> , &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yacy; &pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&tcy;&ocy;&scy;&pcy;&ocy;&scy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&softcy; &vcy;&acy;&shcy;&icy;&khcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;.</span></p> <p><span data-i18n="c8f7d31e3b42b9dc6787dfa595113b3ba240719db106e143a87f322b2eee9fca/0c" data-source="To do so, you can specify a &lt;a href=&quot;gitattributes&quot;&gt;gitattributes[5]&lt;/a&gt; pattern with the &lt;code&gt;working-tree-encoding&lt;/code&gt; attribute. For example, the following pattern sets all C files to use UTF-16LE-BOM, which is a common encoding on Windows:" onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;  <a href="gitattributes.html">gitattributes[5]</a>  &scy; &acy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;&ocy;&mcy;  <code>working-tree-encoding</code> . &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&jcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy; &ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy; &dcy;&lcy;&yacy; &vcy;&scy;&iecy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; C &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; UTF-16LE-BOM, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &rcy;&acy;&scy;&pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&kcy;&ocy;&jcy; &vcy; &ZeroWidthSpace;&ZeroWidthSpace;Windows:</span></p> <div> <div> <pre class="hljs language-undefined">*.c        working-tree-encoding=UTF-16LE-BOM</pre> </div> </div> <p><span data-i18n="0e06e45e03f5ecd052241ca135023bb8c15441ac28a87edb164d8da7fc0c612d/5e" data-source="You will need to run &lt;code&gt;git add --renormalize&lt;/code&gt; to have this take effect. Note that if you are making these changes on a project that is used across platforms, you&amp;rsquo;ll probably want to make it in a per-user configuration file or in the one in &lt;code&gt;$GIT_DIR/info/attributes&lt;/code&gt;, since making it in a &lt;code&gt;.gitattributes&lt;/code&gt; file in the repository will apply to all users of the repository." onmousemove="i18n(this)">&Vcy;&acy;&mcy; &ncy;&ucy;&zhcy;&ncy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy;  <code>git add --renormalize</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &ecy;&tcy;&ocy; &vcy;&scy;&tcy;&ucy;&pcy;&icy;&lcy;&ocy; &vcy; &scy;&icy;&lcy;&ucy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;: &iecy;&scy;&lcy;&icy; &vcy;&ycy; &vcy;&ncy;&ocy;&scy;&icy;&tcy;&iecy; &ecy;&tcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &pcy;&rcy;&ocy;&iecy;&kcy;&tcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &ncy;&acy; &rcy;&acy;&zcy;&ncy;&ycy;&khcy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&acy;&khcy;, &vcy;&acy;&mcy;, &vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &zcy;&acy;&khcy;&ocy;&chcy;&iecy;&tcy;&scy;&yacy; &vcy;&ncy;&iecy;&scy;&tcy;&icy; &icy;&khcy; &vcy; &fcy;&acy;&jcy;&lcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &icy;&lcy;&icy; &vcy; &fcy;&acy;&jcy;&lcy;  <code>$GIT_DIR/info/attributes</code> , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &vcy;&ncy;&iecy;&scy;&iecy;&ncy;&icy;&iecy; &iecy;&gcy;&ocy; &vcy; &fcy;&acy;&jcy;&lcy;  <code>.gitattributes</code>  &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &kcy;&ocy; &vcy;&scy;&iecy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="5d958acaf47115e531fb8a3ea9cedbba27a0591e2c19bd94f2f013a8e116647b/a2" data-source="See the following entry for information about normalizing line endings as well, and see &lt;a href=&quot;gitattributes&quot;&gt;gitattributes[5]&lt;/a&gt; for more information about attribute files." onmousemove="i18n(this)">&Dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy; &ncy;&ocy;&rcy;&mcy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &kcy;&ocy;&ncy;&tscy;&ocy;&vcy; &scy;&tcy;&rcy;&ocy;&kcy; &scy;&mcy;. &vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&icy;, &acy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy; &fcy;&acy;&jcy;&lcy;&acy;&khcy; &acy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;&ocy;&vcy; &scy;&mcy;. &vcy;  <a href="gitattributes.html">gitattributes[5]</a> .</span></p> </dd> </dl> </div> <div id="windows-diff-control-m"> <dl> <dt id="Documentation/gitfaq.txt-I8217monWindowsandgitdiffshowsmyfilesashavingacodeMcodeattheend"><span data-i18n="aa08c73e07ef256c75040f6fe2c042cc5b406ead229bf123ea2cad3e61f72479/f6" data-source="I&amp;rsquo;m on Windows and git diff shows my files as having a &lt;code&gt;^M&lt;/code&gt; at the end." onmousemove="i18n(this)">&YAcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy; Windows, &icy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&acy;  git  &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &mcy;&ocy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &icy;&mcy;&iecy;&yucy;&tcy;  <code>^M</code>  &vcy; &kcy;&ocy;&ncy;&tscy;&iecy;.</span></dt> <dd> <p><span data-i18n="6647b09c7ba2e4ecf63f772f94a7436ba70653234a24372c5a7755e8880d6f57/18" data-source="By default, Git expects files to be stored with Unix line endings. As such, the carriage return (&lt;code&gt;^M&lt;/code&gt;) that is part of a Windows line ending is shown because it is considered to be trailing whitespace. Git defaults to showing trailing whitespace only on new lines, not existing ones." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;  Git  &ocy;&zhcy;&icy;&dcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &fcy;&acy;&jcy;&lcy;&ycy; &bcy;&ucy;&dcy;&ucy;&tcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &scy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&ncy;&icy;&yacy;&mcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy; Unix. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy; &kcy;&acy;&rcy;&iecy;&tcy;&kcy;&icy; (  <code>^M</code>  ), &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &chcy;&acy;&scy;&tcy;&softcy;&yucy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&ncy;&icy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; Windows, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ocy;&ncy; &scy;&chcy;&icy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ycy;&mcy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&ocy;&mcy;.  Git  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ycy;&iecy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&ycy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &ncy;&ocy;&vcy;&ycy;&khcy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&khcy;, &acy; &ncy;&iecy; &vcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy;.</span></p> <p><span data-i18n="8166e47534906dcc1ba680e63ed9ee9169a93446bc2e70b186643e8a749c134f/12" data-source="You can store the files in the repository with Unix line endings and convert them automatically to your platform&amp;rsquo;s line endings. To do that, set the configuration option &lt;code&gt;core.eol&lt;/code&gt; to &lt;code&gt;native&lt;/code&gt; and see the following entry for information about how to configure files as text or binary." onmousemove="i18n(this)">&Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &scy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&ncy;&icy;&yacy;&mcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy; Unix &icy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &kcy;&ocy;&ncy;&vcy;&iecy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&khcy; &vcy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&ncy;&icy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy; &vcy;&acy;&shcy;&iecy;&jcy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&ycy;. &Dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &dcy;&lcy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.eol</code>  &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>native</code>  &icy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&icy;&tcy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&ucy;&yucy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy; &tcy;&ocy;&mcy;, &kcy;&acy;&kcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy; &kcy;&acy;&kcy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&iecy; &icy;&lcy;&icy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&iecy;.</span></p> <p><span data-i18n="7d386917862de739f3dc327262474bf6a93a0a46474eb3f303d39ee4814a89e5/c0" data-source="You can also control this behavior with the &lt;code&gt;core.whitespace&lt;/code&gt; setting if you don&amp;rsquo;t wish to remove the carriage returns from your line endings." onmousemove="i18n(this)">&Vcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy;  <code>core.whitespace</code> , &iecy;&scy;&lcy;&icy; &ncy;&iecy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &ucy;&dcy;&acy;&lcy;&yacy;&tcy;&softcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy; &kcy;&acy;&rcy;&iecy;&tcy;&kcy;&icy; &icy;&zcy; &kcy;&ocy;&ncy;&tscy;&ocy;&vcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;.</span></p> </dd> </dl> </div> <div id="always-modified-files-case"> <dl> <dt id="Documentation/gitfaq.txt-WhydoIhaveafilethat8217salwaysmodified"><span data-i18n="041f73bc2f083dbbfe44e3f233c3646b51180e95d1023c6ac2c29c4961704d0c/af" data-source="Why do I have a file that&amp;rsquo;s always modified?" onmousemove="i18n(this)">&Pcy;&ocy;&chcy;&iecy;&mcy;&ucy; &ucy; &mcy;&iecy;&ncy;&yacy; &iecy;&scy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;?</span></dt> <dd> <p><span data-i18n="fb17c19e8b359825285e7c0748871182d7888f0aafb6064ec5c22c20cf43a240/91" data-source="Internally, Git always stores file names as sequences of bytes and doesn&amp;rsquo;t perform any encoding or case folding. However, Windows and macOS by default both perform case folding on file names. As a result, it&amp;rsquo;s possible to end up with multiple files or directories whose names differ only in case. Git can handle this just fine, but the file system can store only one of these files, so when Git reads the other file to see its contents, it looks modified." onmousemove="i18n(this)">&Vcy;&ncy;&ucy;&tcy;&rcy;&icy;  Git  &vcy;&scy;&iecy;&gcy;&dcy;&acy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy; &icy;&mcy;&iecy;&ncy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy; &vcy;&icy;&dcy;&iecy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy; &bcy;&acy;&jcy;&tcy;&ocy;&vcy; &icy; &ncy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&ocy;&gcy;&ocy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &scy;&vcy;&iecy;&rcy;&tcy;&ycy;&vcy;&acy;&ncy;&icy;&yacy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; Windows &icy; macOS &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy; &scy;&vcy;&iecy;&rcy;&tcy;&ycy;&vcy;&acy;&ncy;&icy;&iecy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy; &vcy; &icy;&mcy;&iecy;&ncy;&acy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;. &Vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &icy;&lcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;, &icy;&mcy;&iecy;&ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&ucy;.  Git  &pcy;&rcy;&iecy;&kcy;&rcy;&acy;&scy;&ncy;&ocy; &scy; &ecy;&tcy;&icy;&mcy; &scy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;, &ncy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&acy;&yacy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &ecy;&tcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy;, &kcy;&ocy;&gcy;&dcy;&acy;  Git  &chcy;&icy;&tcy;&acy;&iecy;&tcy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &fcy;&acy;&jcy;&lcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&vcy;&icy;&dcy;&iecy;&tcy;&softcy; &iecy;&gcy;&ocy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy;, &ocy;&ncy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&icy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&mcy;.</span></p> <p><span data-i18n="bd78f6c72f524e0c4cd0a7c0a6ff97f19de96b3f2c2aefbbdb7db736745fe239/d9" data-source="It&amp;rsquo;s best to remove one of the files such that you only have one file. You can do this with commands like the following (assuming two files &lt;code&gt;AFile.txt&lt;/code&gt; and &lt;code&gt;afile.txt&lt;/code&gt;) on an otherwise clean working tree:" onmousemove="i18n(this)">&Lcy;&ucy;&chcy;&shcy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy; &vcy;&acy;&scy; &ocy;&scy;&tcy;&acy;&lcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&dcy;&icy;&ncy; &fcy;&acy;&jcy;&lcy;. &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy; (&pcy;&rcy;&icy; &ucy;&scy;&lcy;&ocy;&vcy;&icy;&icy;, &chcy;&tcy;&ocy; &iecy;&scy;&tcy;&softcy; &dcy;&vcy;&acy; &fcy;&acy;&jcy;&lcy;&acy;  <code>AFile.txt</code>  &icy;  <code>afile.txt</code> ) &vcy; &chcy;&icy;&scy;&tcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;:</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">git <span class="hljs-built_in">rm</span> --cached AFile.txt</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git commit -m <span class="hljs-string">&apos;Remove files conflicting in case&apos;</span></span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git checkout .</span></pre> </div> </div> <p><span data-i18n="a79ac55a52804b5b1e403f89ef943bb0270627f0aa22358cc15c210da5d6b734/f8" data-source="This avoids touching the disk, but removes the additional file. Your project may prefer to adopt a naming convention, such as all-lowercase names, to avoid this problem from occurring again; such a convention can be checked using a &lt;code&gt;pre-receive&lt;/code&gt; hook or as part of a continuous integration (CI) system." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &icy;&zcy;&bcy;&iecy;&zhcy;&acy;&tcy;&softcy; &pcy;&rcy;&icy;&kcy;&ocy;&scy;&ncy;&ocy;&vcy;&iecy;&ncy;&icy;&yacy; &kcy; &dcy;&icy;&scy;&kcy;&ucy;, &ncy;&ocy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;. &Vcy;&acy;&shcy; &pcy;&rcy;&ocy;&iecy;&kcy;&tcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&chcy;&iecy;&scy;&tcy;&softcy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&softcy; &scy;&ocy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&iecy; &ocy;&bcy; &icy;&mcy;&iecy;&ncy;&acy;&khcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &icy;&mcy;&iecy;&ncy;&acy; &vcy; &ncy;&icy;&zhcy;&ncy;&iecy;&mcy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&bcy;&iecy;&zhcy;&acy;&tcy;&softcy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy;&gcy;&ocy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&ncy;&ocy;&vcy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&ocy;&jcy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy;; &tcy;&acy;&kcy;&ocy;&iecy; &scy;&ocy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;  <code>pre-receive</code>  &icy;&lcy;&icy; &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&softcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ycy; &ncy;&iecy;&pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&ncy;&ocy;&jcy; &icy;&ncy;&tcy;&iecy;&gcy;&rcy;&acy;&tscy;&icy;&icy; (CI).</span></p> <p><span data-i18n="9d0eca9e2f5d999af759d89c6b23a8dd740484785664fbb57ada97ef3f52b85a/de" data-source="It is also possible for perpetually modified files to occur on any platform if a smudge or clean filter is in use on your system but a file was previously committed without running the smudge or clean filter. To fix this, run the following on an otherwise clean working tree:" onmousemove="i18n(this)">&Tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &chcy;&tcy;&ocy; &pcy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&ncy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &pcy;&ocy;&yacy;&vcy;&yacy;&tcy;&scy;&yacy; &ncy;&acy; &lcy;&yucy;&bcy;&ocy;&jcy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&iecy;, &iecy;&scy;&lcy;&icy; &vcy; &vcy;&acy;&shcy;&iecy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy; &ocy;&chcy;&icy;&scy;&tcy;&kcy;&icy; &icy;&lcy;&icy; &ocy;&chcy;&icy;&scy;&tcy;&kcy;&icy;, &ncy;&ocy; &fcy;&acy;&jcy;&lcy; &bcy;&ycy;&lcy; &rcy;&acy;&ncy;&iecy;&iecy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy; &bcy;&iecy;&zcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&acy; &ocy;&chcy;&icy;&scy;&tcy;&kcy;&icy; &icy;&lcy;&icy; &ocy;&chcy;&icy;&scy;&tcy;&kcy;&icy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &ecy;&tcy;&ocy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy;, &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &ncy;&acy; &chcy;&icy;&scy;&tcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;:</span></p> <div> <div> <pre class="hljs language-sql">$ git <span class="hljs-keyword">add</span> <span class="hljs-comment">--renormalize .</span></pre> </div> </div> </dd> </dl> </div> <div id="recommended-storage-settings"> <dl> <dt id="Documentation/gitfaq.txt-What8217stherecommendedwaytostorefilesinGit"><span data-i18n="a28c93e01467d8a0ae7720dfb9ece17ba68190962d21df0a1942e8c3f7c6f1e1/29" data-source="What&amp;rsquo;s the recommended way to store files in Git?" onmousemove="i18n(this)">&Kcy;&acy;&kcy;&ocy;&jcy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy;&ycy;&jcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; Git?</span></dt> <dd> <p><span data-i18n="d0c25a4333e351dc4a3e9e9675753eeb84487567387784ae876b8817d742a0db/1f" data-source="While Git can store and handle any file of any type, there are some settings that work better than others. In general, we recommend that text files be stored in UTF-8 without a byte-order mark (BOM) with LF (Unix-style) endings. We also recommend the use of UTF-8 (again, without BOM) in commit messages. These are the settings that work best across platforms and with tools such as &lt;code&gt;git diff&lt;/code&gt; and &lt;code&gt;git merge&lt;/code&gt;." onmousemove="i18n(this)">&KHcy;&ocy;&tcy;&yacy;  Git  &mcy;&ocy;&zhcy;&iecy;&tcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &icy; &ocy;&bcy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&tcy;&softcy; &lcy;&yucy;&bcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &lcy;&yucy;&bcy;&ocy;&gcy;&ocy; &tcy;&icy;&pcy;&acy;, &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&tcy; &lcy;&ucy;&chcy;&shcy;&iecy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy;. &Vcy; &ocy;&bcy;&shchcy;&iecy;&mcy;, &mcy;&ycy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; UTF-8 &bcy;&iecy;&zcy; &mcy;&iecy;&tcy;&kcy;&icy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&acy; &bcy;&acy;&jcy;&tcy;&ocy;&vcy; (BOM) &scy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&ncy;&icy;&yacy;&mcy;&icy; LF (&vcy; &scy;&tcy;&icy;&lcy;&iecy; Unix). &Mcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; UTF-8 (&ocy;&pcy;&yacy;&tcy;&softcy; &zhcy;&iecy;, &bcy;&iecy;&zcy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy;) &vcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;&khcy; &ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Ecy;&tcy;&icy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &lcy;&ucy;&chcy;&shcy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&tcy; &ncy;&acy; &rcy;&acy;&zcy;&ncy;&ycy;&khcy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&acy;&khcy; &icy; &scy; &tcy;&acy;&kcy;&icy;&mcy;&icy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;&icy;, &kcy;&acy;&kcy;  <code>git diff</code>  &icy;  <code>git merge</code> .</span></p> <p><span data-i18n="2c04d25caa93e87d770d5565fc5fb524cb1d13dccb6aa17b0a3861401805a408/80" data-source="Additionally, if you have a choice between storage formats that are text based or non-text based, we recommend storing files in the text format and, if necessary, transforming them into the other format. For example, a text-based SQL dump with one record per line will work much better for diffing and merging than an actual database file. Similarly, text-based formats such as Markdown and AsciiDoc will work better than binary formats such as Microsoft Word and PDF." onmousemove="i18n(this)">&Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &iecy;&scy;&lcy;&icy; &ucy; &vcy;&acy;&scy; &iecy;&scy;&tcy;&softcy; &vcy;&ycy;&bcy;&ocy;&rcy; &mcy;&iecy;&zhcy;&dcy;&ucy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&mcy;&icy; &icy; &ncy;&iecy;&tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&mcy;&icy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;&mcy;&icy; &khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy;, &mcy;&ycy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &icy;, &pcy;&rcy;&icy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;&scy;&tcy;&icy;, &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&ycy;&vcy;&acy;&tcy;&softcy; &icy;&khcy; &vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&jcy; &dcy;&acy;&mcy;&pcy; SQL &scy; &ocy;&dcy;&ncy;&ocy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&softcy;&yucy; &vcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy; &gcy;&ocy;&rcy;&acy;&zcy;&dcy;&ocy; &lcy;&ucy;&chcy;&shcy;&iecy; &dcy;&lcy;&yacy; &scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&yacy; &icy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;, &chcy;&iecy;&mcy; &rcy;&iecy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &bcy;&acy;&zcy;&ycy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ocy;, &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&iecy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ycy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy; Markdown &icy; AsciiDoc, &bcy;&ucy;&dcy;&ucy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy; &lcy;&ucy;&chcy;&shcy;&iecy;, &chcy;&iecy;&mcy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&iecy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ycy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy; Microsoft Word &icy; PDF.</span></p> <p><span data-i18n="6529a7131b1f573e5193cb06ef5a12c9f60220aabd0c8f39bee704e94ad93266/d7" data-source="Similarly, storing binary dependencies (e.g., shared libraries or JAR files) or build products in the repository is generally not recommended. Dependencies and build products are best stored on an artifact or package server with only references, URLs, and hashes stored in the repository." onmousemove="i18n(this)">&Acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ocy;, &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ncy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&tcy;&scy;&yacy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&iecy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &ocy;&bcy;&shchcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;  libraries  &icy;&lcy;&icy; JAR) &icy;&lcy;&icy; &pcy;&rcy;&ocy;&dcy;&ucy;&kcy;&tcy;&ycy; &scy;&bcy;&ocy;&rcy;&kcy;&icy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &icy; &pcy;&rcy;&ocy;&dcy;&ucy;&kcy;&tcy;&ycy; &scy;&bcy;&ocy;&rcy;&kcy;&icy; &lcy;&ucy;&chcy;&shcy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &acy;&rcy;&tcy;&iecy;&fcy;&acy;&kcy;&tcy;&ocy;&vcy; &icy;&lcy;&icy; &pcy;&acy;&kcy;&iecy;&tcy;&ocy;&vcy;, &gcy;&dcy;&iecy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &khcy;&rcy;&acy;&ncy;&yacy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; &icy; &khcy;&ecy;&shcy;&icy;.</span></p> <p><span data-i18n="f2ca88e02f86e00b07d2eed921a6442ba215afad623eb89a8e6f22b1fc78979d/79" data-source="We also recommend setting a &lt;a href=&quot;gitattributes&quot;&gt;gitattributes[5]&lt;/a&gt; file to explicitly mark which files are text and which are binary. If you want Git to guess, you can set the attribute &lt;code&gt;text=auto&lt;/code&gt;. For example, the following might be appropriate in some projects:" onmousemove="i18n(this)">&Mcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;  <a href="gitattributes.html">gitattributes[5]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &yacy;&vcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&mcy;&icy;, &acy; &kcy;&acy;&kcy;&icy;&iecy; &mdash; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&mcy;&icy;. &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy;  Git  &ucy;&gcy;&acy;&dcy;&acy;&lcy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &acy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;  <code>text=auto</code> . &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &vcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &pcy;&rcy;&ocy;&iecy;&kcy;&tcy;&acy;&khcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &ucy;&mcy;&iecy;&scy;&tcy;&ncy;&ocy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&iecy;:</span></p> <div> <div> <pre class="hljs language-vbnet"># <span class="hljs-keyword">By</span> <span class="hljs-keyword">default</span>, guess.
*        <span class="hljs-keyword">text</span>=<span class="hljs-keyword">auto</span>
# Mark all C files <span class="hljs-keyword">as</span> <span class="hljs-keyword">text</span>.
*.c        <span class="hljs-keyword">text</span>
# Mark all JPEG files <span class="hljs-keyword">as</span> <span class="hljs-keyword">binary</span>.
*.jpg        <span class="hljs-keyword">binary</span></pre> </div> </div> <p><span data-i18n="b7edd1fa84505b1339d8cec8cbad2198acd9a00de80f72e7a948cc45bb54ecd2/f1" data-source="These settings help tools pick the right format for output such as patches and result in files being checked out in the appropriate line ending for the platform." onmousemove="i18n(this)">&Ecy;&tcy;&icy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &pcy;&ocy;&mcy;&ocy;&gcy;&acy;&yucy;&tcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&tcy;&softcy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ycy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;, &icy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&yacy;&tcy; &kcy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&yucy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &scy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&ncy;&icy;&iecy;&mcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &dcy;&lcy;&yacy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&ycy;.</span></p> </dd> </dl> </div> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/gitfaq">https://git-scm.com/docs/gitfaq</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script data-cfasync="false" src="../../../cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-bundle.html">
                            gitformat bundle                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-chunk.html">
                            gitformat chunk                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-commit-graph.html">
                            gitformat commit-graph                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-index.html">
                            gitformat index                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-pack.html">
                            gitformat pack                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-signature.html">
                            gitformat signature                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitglossary.html">
                            gitglossary                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="gitfaq.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>